package com.woniu.book.feign;

import com.ruoyi.common.core.domain.AjaxResult;
import com.woniu.coupon.domain.Coupon;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("coupon")
public interface CouponFeign {

    @RequestMapping("/coupon/tbcoupon/feign/getCouponById")
    public Coupon getCouponById(@RequestParam("id") Long id);

}
